<?php

class Tinydeal_com extends AbstractParser
{

	protected $_url = '';

	public function getRow($html)
	{
		$result = array();
		
		$html = $this->_cutSpaces( $html );
//        echo $html; exit;

		$pattern = '<span class="productSpecialPrice.*".*>\$(.*)</span>';
		$matched = $this->_match( $pattern, $html );

        if(empty($matched[1][0]))
        {
            $pattern = '<span.*class="productSpecialPrice.*".*>\$(.*)</span>';
            $matched = $this->_match( $pattern, $html );
        }

        if(empty($matched[1][0]))
            return $result;

        $result['price'] = $matched[1][0];

        if(empty($matched[1][0]))
            return $result;

        return $this->_addRow($result);
	}

    public function getNextPage($html)
    {}

    public function getRowset($html)
    {}

    public function getItem($html)
    {}

}